﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Csharp基础作业
{
    static class Work1
    {
        static public void run()
        {
            Vector x, y;
            x = new Vector();
            x.value = 30;
            y = x;

            MessageBox.Show($"x.value={x.value}\ny.value={y.value}");

            MessageBox.Show("run y.value = 100;");
            y.value = 100;

            MessageBox.Show($"now x.value={x.value}\nnow y.value={y.value}");

            return;
        }
    }
    class Vector
    {
        public int value;
    }
}
